package day03;

import java.util.Scanner;

public class IfDemo {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        double price = sc.nextDouble();
        if (price>500){
            System.out.println(price*0.8);
        }
        int score = sc.nextInt();
        if (score<0&&score>100){
            System.out.println("不合法");
        }
    }
}
